<div class="nhaxuatbans view">
<h2><?php  __('Nhaxuatban');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $nhaxuatban['Nhaxuatban']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Manxb'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $nhaxuatban['Nhaxuatban']['manxb']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tennxb'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $nhaxuatban['Nhaxuatban']['tennxb']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Diachi'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $nhaxuatban['Nhaxuatban']['diachi']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Dtnxb'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $nhaxuatban['Nhaxuatban']['dtnxb']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Email'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $nhaxuatban['Nhaxuatban']['email']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Thực hiện'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Sửa NXB', true), array('action' => 'edit', $nhaxuatban['Nhaxuatban']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Xóa NXB', true), array('action' => 'delete', $nhaxuatban['Nhaxuatban']['id']), null, sprintf(__('Bạn có muốn xóa # %s?', true), $nhaxuatban['Nhaxuatban']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('DS NXB', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('NXB mới', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('DS Ðầu sách', true), array('controller' => 'dausaches', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Ðầu sách mới', true), array('controller' => 'dausaches', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Liên kết Đầu sách');?></h3>
	<?php if (!empty($nhaxuatban['Dausach'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Linhvuc Id'); ?></th>
		<th><?php __('Ngonnguk Id'); ?></th>
		<th><?php __('Nhaxuatban Id'); ?></th>
		<th><?php __('Hinhanh'); ?></th>
		<th><?php __('Mads'); ?></th>
		<th><?php __('Tensach'); ?></th>
		<th><?php __('Sotrang'); ?></th>
		<th><?php __('Tacgia'); ?></th>
		<th><?php __('Namxb'); ?></th>
		<th class="actions"><?php __('Thực hiện');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($nhaxuatban['Dausach'] as $dausach):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $dausach['id'];?></td>
			<td><?php echo $dausach['linhvuc_id'];?></td>
			<td><?php echo $dausach['ngonnguk_id'];?></td>
			<td><?php echo $dausach['nhaxuatban_id'];?></td>
			<td><?php echo $dausach['hinhanh'];?></td>
			<td><?php echo $dausach['mads'];?></td>
			<td><?php echo $dausach['tensach'];?></td>
			<td><?php echo $dausach['sotrang'];?></td>
			<td><?php echo $dausach['tacgia'];?></td>
			<td><?php echo $dausach['namxb'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Xem', true), array('controller' => 'dausaches', 'action' => 'view', $dausach['id'])); ?>
				<?php echo $this->Html->link(__('Sửa', true), array('controller' => 'dausaches', 'action' => 'edit', $dausach['id'])); ?>
				<?php echo $this->Html->link(__('Xóa', true), array('controller' => 'dausaches', 'action' => 'delete', $dausach['id']), null, sprintf(__('Bạn có muốn xóa # %s?', true), $dausach['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('Ðầu sách mới', true), array('controller' => 'dausaches', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
